<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        /* 因为有通栏：占满一行的边框，所以需要有一个通栏：占满一行的盒子 */
        .nav {
            height: 40px;
            border-bottom: 1px solid #ccc;
        }

        ul {
            list-style: none;
            width: 1200px;
            margin: 0 auto;

            li {
                float: left;
                width: 20%;
                height: 40px;
                border-right: 1px solid #ccc;
                box-sizing: border-box;
                text-align: center;
                line-height: 40px;
            }
        }

        li:last-child {
            border-right: 0;
        }

        a {
            text-decoration: none;
            color: black;
            display: inline-block;
            line-height: 40px;
            text-align: center;
        }

        .app {
            position: relative;
        }

        .nav li a:hover img {
            display: block;
        }

        .app img {
            position: absolute;
            top: 40px;
            left: 50%;
            transform: translate(-50%, 1px);
            display: none;
        }

        /*a:last-child{*/
        /*    border-right: 0;*/
        /*}*/
    </style>
</head>
<body>
<div class="nav">
    <ul>
        <li><a href="#">我要投资</a></li>
        <li><a href="#">平台介绍</a></li>
        <li><a href="#">新手专区</a></li>
        <li><a href="#" class="app">手机微金所
            <img class="code" src="./images/code.jpg" alt=""></a></li>
        <li><a href="#">个人中心</a></li>
    </ul>
</div>
</body>
</html>